package com.thunder.component;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;

import com.thunder.utils.Constant;
import com.thunder.utils.GameUtil;

public class ScoreCounter {
	private final BufferedImage image;
	
	public ScoreCounter() {
		image = GameUtil.loadBufferedImage(Constant.OVER_IMG_PATH);
	}
	
	public void draw(Graphics g, int score) {
		g.drawImage(image, 0, 0, null);
		g.setColor(Color.black);
		g.setFont(new Font("楷体",Font.ITALIC, 80));
		g.drawString(String.valueOf(score), 290, 350);
		g.drawString(String.valueOf(score), 290, 700);
	}
}
